package com.itany.shop.dao;

import com.itany.shop.entity.Product;
import com.itany.shop.exception.DataAccessException;

import java.util.List;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/4/15 14:07
 * Version:1.0-SNAPSHOT
 * Description:
 */
public interface ProductDao {

    /**
     * 查询所有商品信息
     * @return
     */
    public List<Product> selectAll() throws DataAccessException;

    /**
     * 根据主键查询商品信息
     * @param id
     * @return
     */
    public Product selectById(Integer id) throws DataAccessException;

}
